package com.neusoft.ysu.npms.mapper;

import com.neusoft.ysu.npms.pojo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者：刘金秋
 * @since 2024-06-18
 */
@Mapper
public interface FarmerMapper extends BaseMapper<Farmer> {
    Integer add(Farmer farmer);
    Integer deleteFarmer(Farmer farmer);
    Integer updateFarmer(Farmer farmer);
    List<Department> selectAll();
    Farmer findById(Farmer farmer);
    Farmer findByName(Farmer farmer);
    List<Farmer> getlist(Farmer farmer);
    Integer logout3(ApprovalInfo approvalInfo);
    List<FarmerPlus> getlist1(FarmerPlus farmerPlus);
    List<Farmer> searchByArea(Farmer farmer);
    List<FarmerRisk> searchRisk(FarmerRisk farmer);
}
